package com.chukun.disruptor.higher.chain;


import com.lmax.disruptor.EventHandler;

/**
 * handler1: 获取Price
 */
public class EventHandlerTaskFive implements EventHandler<Trade> {

    @Override
    public void onEvent(Trade trade, long l, boolean b) throws Exception {
        System.out.println("set price :"+trade.getPrice());
        Thread.sleep(1000);
    }
}
